<template>
  <div class="boss">
    <Top></Top>
   <div class="war">
    <div class="area-center">
     <!-- 招聘总区域 -->
      <head-page
        :title="`${this.$route.query.index}.${this.$route.query.i}`"
        id="back"
      ></head-page>
      <!-- 内容区域 -->
      <div class="context richText bold-size" v-html="list"></div>
    
    </div>
   </div>
  </div>
</template>

<script>
import Top from "@/components/Home/TopPage.vue";

import { recruitsId } from "@/api/index";

export default {
  data() {
    return {
      list: [],
    };
  },
  components: {
    Top,
  },
  //招聘标题查看详情
  mounted() {
    recruitsId(this.$route.query.id).then((res) => {
      if (res.data.code == 200) {
        this.list = this.dataHTML(res.data.data.recruitText);
      }
    });
  },
  methods: {},
};
</script>

<style scoped>
/* 大盒子区域 */
.boss {
  width: 100%;
  height: 100%;
}

/* 招聘总区域 */
.recruit {
  display: flex;
  margin-top: 0.1rem;
  justify-content: center;
  padding-bottom: 2px;
}
/* 商会新闻的原点 */
.yuan {
  width: 5%;
  height: 61%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.1rem;
  padding-top: 1px;
  border-radius: 50%;
  border: 1px solid;
}
/* 商会新闻文字区域 */
/* .text {
  padding: 0.1rem;
} */
/* 版心区域 */
.center {
  width: 95%;
  height: 100%;
  background-color: white;
  border-radius: 0.1rem;
}
/* 招聘头部区域 */
.top {
  /* height: 0.4rem; */
  display: flex;
  justify-content: center;
}
/* 文字图片区域 */
.wentu {
  width: 30%;
  height: 100%;
  display: flex;
}
/* 图片区域 */
.tu {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
}
.tu img {
  width: 0.4rem;
  height: 0.35rem;
}
/* 文字区域 */
.wen {
  width: 50%;
  height: 100%;
  font-size: 0.26rem;
  font-weight: 700;
  text-align: center;
  line-height: 0.4rem;
}
/* 底部区域 */
.bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
 justify-content: center;
 align-items: center;
}
.title {
  width: 100%;
  height: 0.3rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.2rem;
}
.context {
  margin: 0.1rem 2.5% 0 2.5%;
  overflow-x: hidden;
}
</style>